home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / dev / amos / AMOSL0495.lzh / AMOSLIST / 000093_amos-request@svcs1.digex.net_Fri Apr 21 08:00:41 1995.msg < prev    next >
Internet Message Format  |  1995-05-01  |  2KB

  1. Received: from svcs1.digex.net by nfs1.digex.net with SMTP id AA00929
  2.   (5.67b8/IDA-1.5); Fri, 21 Apr 1995 08:00:40 -0400
  3. Received: by svcs1.digex.net id AA15458
  4.   (5.67b8/IDA-1.5 for amos-out); Fri, 21 Apr 1995 04:09:51 -0400
  5. Received: from nfs2.digex.net by svcs1.digex.net with SMTP id AA15454
  6.   (5.67b8/IDA-1.5 for <amos@svcs1.digex.net>); Fri, 21 Apr 1995 04:09:49 -0400
  7. Received: from pianeta (pianeta.di.unito.it) by nfs2.digex.net with SMTP id AA21224
  8.   (5.67b8/IDA-1.5 for <amos-list@access.digex.net>); Fri, 21 Apr 1995 04:08:15 -0400
  9. Received: from cicladi.unito.it (cicladi.di.unito.it) by pianeta (4.1/SMI-4.1)
  10.     id AA00866; Fri, 21 Apr 95 10:02:48 +0200
  11. From: aldo@di.unito.it ( Magoga - Borsista CSI )
  12. Message-Id: <9504210802.AA00866@pianeta>
  13. Subject: Re: Bits and Pieces + IFF Sample Converter
  14. To: paul.hickman@ecl.etherm.co.uk
  15. Date: Fri, 21 Apr 1995 10:02:00 +0200 (EET DST)
  16. Cc: amos-list@access.digex.net
  17. In-Reply-To: <9364.9504200804@m17.controls.eurotherm.co.uk> from "Paul Hickman" at Apr 20, 95 09:05:06 am
  18. X-Mailer: ELM [version 2.4 PL23]
  19. Mime-Version: 1.0
  20. Content-Type: text/plain; charset=US-ASCII
  21. Content-Transfer-Encoding: 7bit
  22. Content-Length: 1219      
  23. Status: RO
  24. X-Status: 
  25.  
  26.  On 20th April Paul Hickman answered to a previous question about 
  27.  the Text Length command.
  28.  
  29.  >  
  30.  > This isn't much of a problem but a "WHY?" instead.
  31.  >  
  32.  > a = (320-Gr Length( title$ ))/2
  33.  >  
  34.  > doesn't work, while
  35.  >  
  36.  > tl = Gr Length( title$ )
  37.  > a = (320-tl)/2
  38.  >  
  39.  > does. I haven't got a real problem with the way that Amos does this (I know
  40.  > about it after all). I'd just like to know why it does it. What strange methods
  41.  > does AmosPro use to pass variables around? Why does it pass them around in this
  42.  > way?
  43.  >  
  44. > Erm, isn't "Gr Length" supposed to be "Text Length"? If so, this is a 
  45. > known bug with that particular command.
  46.  
  47. I would like to say that i used this method in my last version of Pattern
  48. Generator to center messages in the message box,buttons and so...
  49. It works very fine on my Amiga!
  50. Note that i used the first way and not the second...
  51.  
  52. EX. To center "File doesn't exist!" i wrote:
  53.  
  54.     Text 100+(400-Text Length("File doesn't exist!"))/2,y,"File doesn't exist!"
  55.  
  56.     It means: 
  57.     
  58.     - message box width=400
  59.  
  60.     - start coords for message box are 100,y
  61.     - print text starting from 100+(message box width-text length(MESSAGE$))/2
  62.  
  63. Luca Ferraris (aldo@di.unito.it)
  64.  
  65.  
  66.  
  67.